package com.rocsun.product.service.impl;

import com.rocsun.product.Product;
import com.rocsun.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @program: rocsun-cloud-alibaba
 * @description:
 * @author: yx.guo
 * @create: 2025-08-28 10:38
 **/
@Service
public class ProductServiceImpl implements ProductService {

    @Override
    public Product getProduct(Long id) {
        Product product = new Product();
        product.setId(id);
        product.setPrice(new BigDecimal(99));
        product.setProductName("苹果" + id);
        product.setNum(11);

        return product;
     }

}
